﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace So.ShapeViewCounter
{
    public static class Constants {
        public static string _cachePrefixKey = "ShapeUserViewCounter_";
    }

    public static class CacheInvalidateTriggers {
        public static string ShapeUserViewCounterChangedForShapeName(string shapeName)
        {
            return "ShapeUserViewCounterChangedForShapeName_" + shapeName;
        }

        public static string ShapeUserViewCounterChangedForContentItemId(int contentItemId)
        {
            return "ShapeUserViewCounterChangedForContentItemId_" + contentItemId;
        }

        public static string ShapeUserViewCounterChangedForUserId(int userId)
        {
            return "ShapeUserViewCounterChangedForUserId_" + userId;
        }
    }
}